package pri.black.garden.biz;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import pri.black.garden.domain.Garden;
import pri.black.garden.service.IGardenService;

/**
 * gardenBiz业务层处理
 * 
 * @author black
 * @date 2025-01-21
 */
@Service
public class GardenBiz
{
    @Autowired
    private IGardenService gardenService;

    public IGardenService getService(){
        return gardenService;
    }

    /**
     * 新增Garden
     */
    public boolean save(Garden garden){
        return gardenService.save(garden);//看情况提取至controller中
    }

    /**
     * 更新Garden
     */
    public boolean update(Garden garden){
        return gardenService.updateById(garden);
    }
}
